package com.taxi.remote;

import com.taxi.dto.Car;
import com.taxi.dto.DriverUser;
import com.taxi.response.OrderDriverResponse;
import com.taxi.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: aniu
 * @Date: 2023/10/6
 * @ClassName: ServiceDriverUserClient
 * @Description: Write class functionality and purpose here.
 * @Version: 1.0
 */
@FeignClient("service-driver-user")
public interface ServiceDriverUserClient {
    @GetMapping("/add-driver-total-orders/{driverId}")
    public Result addDriverTotalOrders(@PathVariable("driverId") Long driverId);

    @GetMapping("/city-driver/is-alailable-driver/{cityCode}")
    public Result<Boolean> isAvailableDriver(@PathVariable String cityCode);

    @GetMapping("/get-available-driver/{vehicleNo}")
    public Result<OrderDriverResponse> getAvailableDriver(@PathVariable("vehicleNo") String vehicleNo);

    @GetMapping("/get-car/{cid}")
    public Result<Car> getCar(@PathVariable("cid") Long cid);

    @GetMapping("/get-driver-info/{driverId}")
    public Result<DriverUser> getDriverInfo(@PathVariable("driverId") Long driverId);


}
